package org.piggy.register.center.api;


import org.piggy.common.config.ServiceDefinition;
import org.piggy.common.config.ServiceInstance;

public interface RegisterCenter {

    void init(String registerAddress, String env);

    void register(ServiceDefinition serviceDefinition, ServiceInstance serviceInstance);

    void deregister(ServiceDefinition serviceDefinition, ServiceInstance serviceInstance);

    void subscribeAllServices(RegisterCenterHandler registerCenterHandler);
}
